<script>
<!--

function f_query(){
	var startDate = document.all("startDate").value;
	var endDate = document.all("endDate").value;

	if (startDate == "" || endDate == "") {
		return ;
	}
	var where_sql = "move_date>=to_date('" + startDate + "','yyyy-mm-dd hh24:mi:ss') and move_date<=to_date('" + endDate + "','yyyy-mm-dd hh24:mi:ss') ";

	document.all("where_sql").value = where_sql;
	document.all("where_type").value = "";
	document.all("where_value").value = "";

	f_reloadPage();
}

//-->
</script>

<table width="100%" height="25" border="0" cellpadding="0" cellspacing="0">
  <tr>
	<td>
		<label id="totalDate" class="gridData"><eam:message key="message.enter.querytime" />(YYYY-MM-DD HH:MM:SS): </label>
		<input type="text" name="startDate" id="startDate"  class="formEdit" size="24" align="center">--<input type="text" name="endDate" id="endDate" class="formEdit" size="24"  align="center">
		<input type="button" name="btnTotal" value="<eam:message key="btn.total2" />" onclick="f_query();">
	</td>
  </tr>
</table>